'use strict';

function compute_average(collection) {
  //在这里写入代码
  let num = collection.reduce(function(sum,value){
    return sum+value;

  },0);
  return num/collection.length;
}

module.exports = compute_average;

